package com.wm.singleton;

/**
 * @ClassName: Singleton_01
 * @Description: 懒汉模式（线程不安全）
 * @Author: WM
 * @Date: 2022/12/19 19:06
 */
public class Singleton_01 {
    private static Singleton_01 instance;

    private Singleton_01() {

    }

    public static Singleton_01 getInstance() {
        if (instance != null) {
            return instance;
        }
        instance = new Singleton_01();
        return instance;
    }
}
